package com.example.meetingroomnew.domain;

import lombok.Data;

import java.util.Date;

public class ReservationPlus extends Reservation{
    private String name;
    private String number;

    public ReservationPlus(MeetingRoom meetingRoom,Reservation reservation) {
        super(reservation.getId(),reservation.getUserId(),reservation.getRoomId(),reservation.getStartTime(),reservation.getEndTime(),reservation.getSubject(),reservation.getApprovalTime(),reservation.getRejectionReason(),reservation.getStatus(),reservation.getAttendees());
        this.name=meetingRoom.getName();
        this.number=meetingRoom.getRoomNumber();
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
}
